//
//  BGMyBuyListViewController.m
//  bigMall
//
//  Created by LTOVE on 16/9/2.
//  Copyright © 2016年 thinklev. All rights reserved.
//

#import "BGMyBuyListViewController.h"
#import "BGMyBuyListController.h"
@interface BGMyBuyListViewController ()<UIGestureRecognizerDelegate>

@property (nonatomic, strong)NSArray *menuArray;

@end

@implementation BGMyBuyListViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    self.bounces = NO;
    self.otherGestureRecognizerSimultaneously = NO;
    //    self.pageAnimatable = NO;
    
    self.title = @"我的订单";
    
}

- (NSArray <NSString *> *)titles {
    
    return @[@"全部",@"进行中",@"仲裁中",@"待评价",@"已完成"];
}

- (NSInteger)numbersOfChildControllersInPageController:(WMPageController *)pageController {
    
    self.bounces = NO;
    //    self.scrollView.bounces = NO;
    self.menuItemWidth = self.view.bounds.size.width / 5;
    self.menuViewStyle = WMMenuViewStyleLine;
    
    self.titleColorNormal = [UIColor blackColor];
    self.titleColorSelected = [UIColor orangeColor];
    self.titleSizeSelected = 21;
    self.titleSizeNormal = 19;
//    self.menuViewBottom = 0;
    self.showOnNavigationBar = NO;
    self.menuHeight = 45;
    self.progressColor = [UIColor orangeColor];
    //    self.scrollView.scrollEnabled = NO;
    
    return self.titles.count;
}

- (NSString *)pageController:(WMPageController *)pageController titleAtIndex:(NSInteger)index {
    
    return self.titles[index];
}

- (UIViewController *)initializeViewControllerAtIndex:(NSInteger)index {
    
    BGMyBuyListController *a = [[BGMyBuyListController alloc] init];
    switch (index) {
        case 0:
            a.type = @"all";
            break;
        case 1:
            a.type = @"process ";
            break;
        case 2:
            a.type = @"arbitrate";
            break;
        case 3:
            a.type = @"waitComment";
            break;
        case 4:
            a.type = @"end";
            break;
            
        default:
            break;
    }
    return a;
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */
- (void)viewWillAppear:(BOOL)animated {
    self.tabBarController.tabBar.hidden = YES;
    //    [UIApplication sharedApplication].statusBarHidden = YES;
}
@end
